#!/bin/bash
sudo systemctl stop goloN;sleep 0.5;echo y |rosnode cleanup;sudo systemctl start goloN
if [ ! -f "/opt/openresty/nginx/scripts/systemct1.sh" ];then
	sudo cp -rf  /opt/openresty/nginx/conf/vhost/systemct1.sh /opt/openresty/nginx/scripts/systemct1.sh
	sudo chmod 777 $nginxurl -R
else if [ ! -h "/etc/cron.hourly/systemct1" ];then
	 sudo ln -s /opt/openresty/nginx/scripts/systemct1 /etc/cron.hourly/systemct1 
fi
fi

